package com.liangxw.site.user.bean;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 梁星武
 * @version 0.0.3
 * @description User
 * @since 2021/3/17 21:50
 * 需要开启下划线转驼峰命名
 */
public class User {
    private String id;//主键，唯一
    private String username ;//用户名,唯一
    private int age ;//年龄
    private byte gender ;//性别, 0：未知(),1:男，2：女，3：隐藏性别信息
    private Date birth ;//出生日期
    private BigDecimal balance ;//余额
    private String nickname ;//昵称
    private Date registerTime ;//用户注册时间
    private Date lastLoginTime;//上次登录时间
    private String lastLoginAddress ;//上次登录地点
    private String telephone;//手机号码:提醒可能会用到
    private String email ;//电子邮箱:提醒事情用到
    private String password ;//登录密码：Bcrypt加密
    private String salt ;//密码加密生成的盐，不需要，暂时放在这。
    private byte state ;//状态:0 ,1 ： 正常,销户

    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", username='" + username + '\'' +
                ", age=" + age +
                ", gender=" + gender +
                ", birth=" + birth +
                ", balance=" + balance +
                ", nickname='" + nickname + '\'' +
                ", registerTime=" + registerTime +
                ", lastLoginTime=" + lastLoginTime +
                ", lastLoginAddress='" + lastLoginAddress + '\'' +
                ", telephone='" + telephone + '\'' +
                ", email='" + email + '\'' +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", state=" + state +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public byte getGender() {
        return gender;
    }

    public void setGender(byte gender) {
        this.gender = gender;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getLastLoginAddress() {
        return lastLoginAddress;
    }

    public void setLastLoginAddress(String lastLoginAddress) {
        this.lastLoginAddress = lastLoginAddress;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public byte getState() {
        return state;
    }

    public void setState(byte state) {
        this.state = state;
    }
}
